//
//  UIControl+TYExtendsion.m
//  TYToolKit
//
//  Created by dev_tianyu on 16/8/6.
//  Copyright © 2016年 dev_tianyu. All rights reserved.
//

#import "UIControl+TYExtendsion.h"
#import <objc/runtime.h>

static const char TYControlObjectKey;

@implementation UIControl (TYExtendsion)
- (void)setUserInfo:(NSDictionary *)userInfo {
    objc_setAssociatedObject(self, &TYControlObjectKey, userInfo, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (NSDictionary *)userInfo {
    return objc_getAssociatedObject(self, &TYControlObjectKey);
}
@end
